<ul id="forum-list" class="normal-list">
<?php 
$remove = "";
if($owner){
	$removeBoard = '<span style="position:absolute" class="board cursor icon ui-icon ui-icon-close"></span>';
	$removeForum = '<span class="forum cursor icon ui-icon ui-icon-closethick"></span>';
}

foreach($forumList as $forum){
	echo '<li><h3 forumid="'.$forum->getForumId().'"><a href="#tabs-friends">'.$forum->getName().'</a>'.$removeForum.'</h3></li>';
	
	foreach($forum->getForumBoard() as $board){
		echo '<li boardid="'.$board->getForumBoardId().'" style="text-indent: 2.5em;">'.$removeBoard.'<a href="#tabs-photos">'.$board->getTitle().'</a></li>';
	}
	if($owner)
		echo '<li style="text-indent: 2.5em;"><input class="new-section" forumid="'.$forum->getForumId().'" class="ui-widget-content ui-corner-all" size="20" type="text"> <button class="but-newSection">+</button></li>';
}
?>
</ul>
<?php if($owner){?>
	<div>
	<input type="text" id="new-forum" class="ui-widget-content ui-corner-all"> <button id="but-newForum">Crear foro</button>
	</div>
<?php }?>